#include "PhysicsPlane.h"
#include <math.h>
#include <d3d9.h>
#include <d3dx9.h>

PhysicsPlane::PhysicsPlane(LPDIRECT3DDEVICE9 device, D3DXVECTOR3 pPosition, float width, float height, float depth, D3DXVECTOR3* pNormal)
{
	this->SetBox(device, width, height, depth, NULL); 
	this->SetPos(&pPosition);
	this->height = height;
	this->width = width;
	mPhys = new Physics();
	mPhys->SetModel(this);
	mPhys->SetType(Physics::Plane);
	this->normal = pNormal;
}

D3DXVECTOR3* PhysicsPlane::GetNormal()
{
	return normal;
}